# coding=utf-8
from django.http import *
from django.shortcuts import render_to_response

def config(request):
    if not request.user.is_authenticated():
        return HttpResponseRedirect('/author/login/?lastUrl=%s' % request.path)
    
    return render_to_response('manager/config.html')
    
def action(request,method):
    from app.manager import actions
    return actions.__dict__[method](request)